package cn.stylefeng.guns.modular.gridsystem.websocket;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
public class Message {

    private String from;
    private String to;
    private String cmd;
    private Object data;

    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    public static
    class Date {
        private String onOrOff;
        private String gatewayCode;
        private String channel;

    }
}
